home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef __numbers_h__
- #define __numbers_h__
-
- #include "lispenvironment.h"
- #include "yacasbase.h"
-
- /// Create a internal number object from an ascii string.
- void* AsciiToNumber(LispCharPtr aString,LispInt aPrecision);
-
- /// Convert from internal number format to ascii format
- LispStringPtr NumberToAscii(void* aNumber,LispHashTable& aHashTable,
- LispInt aBase);
-
- /// Whether the numeric library supports 1.0E-10 and such.
- LispInt NumericSupportForMantissa();
-
- /// Numeric library name
- const LispCharPtr NumericLibraryName();
-
- /// Copy a number class
- void* NumberCopy(void* aOriginal);
-
- /// Delete a number object.
- void NumberDestroy(void* aNumber);
-
-
- LispStringPtr GcdInteger(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable);
-
- LispStringPtr MultiplyFloat(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr AddFloat(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr PlusFloat(LispCharPtr int1,LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr SubtractFloat(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr NegateFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr DivideFloat(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr PowerFloat(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
-
- LispStringPtr SinFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr CosFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr TanFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr ArcSinFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr ArcCosFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr ArcTanFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr ExpFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr LnFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
-
- LispStringPtr SqrtFloat(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr AbsFloat( LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
-
- LispBoolean GreaterThan(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispBoolean LessThan(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
-
- LispStringPtr ShiftLeft( LispCharPtr int1, LispCharPtr int2, LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr ShiftRight( LispCharPtr int1, LispCharPtr int2, LispHashTable& aHashTable,LispInt aPrecision);
-
- LispStringPtr FromBase( LispCharPtr int1, LispCharPtr int2, LispHashTable& aHashTable,
- LispInt aPrecision);
- LispStringPtr ToBase( LispCharPtr int1, LispCharPtr int2, LispHashTable& aHashTable,
- LispInt aPrecision);
-
- LispStringPtr FloorFloat( LispCharPtr int1, LispHashTable& aHashTable,
- LispInt aPrecision);
- LispStringPtr CeilFloat( LispCharPtr int1, LispHashTable& aHashTable,
- LispInt aPrecision);
- LispStringPtr ModFloat( LispCharPtr int1, LispCharPtr int2, LispHashTable& aHashTable,
- LispInt aPrecision);
- LispStringPtr DivFloat( LispCharPtr int1, LispCharPtr int2, LispHashTable& aHashTable,
- LispInt aPrecision);
- LispStringPtr PiFloat( LispHashTable& aHashTable, LispInt aPrecision);
-
- LispStringPtr BitAnd(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr BitOr(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
- LispStringPtr BitXor(LispCharPtr int1, LispCharPtr int2,
- LispHashTable& aHashTable,LispInt aPrecision);
-
-
- LispStringPtr LispFactorial(LispCharPtr int1, LispHashTable& aHashTable,LispInt aPrecision);
-
-
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-